#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr[10] = { 0 };
	int j = 0;
	for (j = 0; j < 10; j++)
	{
		scanf("%d", &arr[j]);
	}
	int max = arr[0];
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (j = 1; j < sz; j++)
	{
		if (arr[j] > max)
			max = arr[j];
	}
	printf("%d", max);
	return 0;
}